﻿namespace Bootstrap5.Abstractions;

/// <summary>
/// Represents a data-bs-* in Bootstrap for parameter in component that boolean type applying specific value.
/// </summary>
public class DataTriggerBooleanAttribute : DataTriggerAttribute
{
    /// <summary>
    /// Initializes an instance of <see cref="DataTriggerBooleanAttribute"/> class by given name and <c>true</c> value of parameter is set <code>true</code>.
    /// </summary>
    /// <param name="name">The name of trigger.</param>
    /// <param name="trueValue">The value for parameter that is <c>true</c>.</param>
    public DataTriggerBooleanAttribute(string name,object trueValue) : base(name)
    {
        TrueValue = trueValue;
    }
    /// <summary>
    /// Gets the value of parameter is <c>true</c>.
    /// </summary>
    public object TrueValue { get; }
    /// <summary>
    /// Gets or the value of parameter is <c>false</c>.
    /// </summary>
    public object FalseValue { get; set; }
}
